package com.zw.knowlege.service;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.zw.common.response.ResponseResult;
import com.zw.knowlege.pojo.ExperiencePojo;

import java.util.List;
import java.util.Map;

/**
 * @Author xtyu
 * @Date 2022/5/9
 * @description 经验基础信息服务
 */
public interface ExperienceBaseService {
    /**
     * 将基础信息插入到数据库
     * @param paramJson
     * @return
     */
    ResponseResult insertExperienceBase(JSONObject paramJson, ExperiencePojo experiencePojo);
    /**
     * 是否发布过
     * @param experienceId
     * @return
     */
    boolean isRelease(String experienceId);
    /**
     * 编辑信息
     * @param paramJson
     * @return
     */
    ResponseResult exitExperienceBase(JSONObject paramJson);

    /**
     * 首页查询
     * @param paramJson
     * @return
     */
    PageInfo<ExperiencePojo> homepageQueryExperience(JSONObject paramJson);

    /**
     * 我的经验查询
     * @param paramJson
     * @return
     */
    PageInfo<ExperiencePojo> queryMyExperience(JSONObject paramJson);

    /**
     * 查询某个经验的详情
     * @param paramJson
     * @return
     */
    ExperiencePojo queryExperienceDetails(JSONObject paramJson);

    /**
     * 更新经验的状态
     * @param paramJson
     * @return
     */
    ResponseResult updateExperienceStatus(JSONObject paramJson);

    /**
     * 获取垂直筛选的字典吗
     * @param userid
     * @return
     */
    Map<String, Object> querySelectDict(String userid);
}
